#@adminLayout()

#define content()
#if(notice)
<script>
  alert("#(notice)");
</script>
#end
<div class="am-cf am-padding am-padding-bottom-0">
  <div class="am-fl am-cf">
    <strong class="am-text-primary am-text-lg">[#(operator) #(date) 详细操作记录] </strong>
  </div>
  <div style="float: right">
    <button class="am-btn am-btn-default am-btn-sm" onclick="history.go(-1)"><span class="am-icon-backward"></span>
      返回
    </button>
  </div>
</div>
<hr>
<div class="am-g">
  <div class="am-u-sm-12">
    <table class="am-table am-table-striped am-table-hover table-main">
      <thead>
      <tr>
        <th class="table-id">ID</th>
        <th>操作时间</th>
        <th>TFDACC品番</th>
        <th>供应商品番</th>
        <td>操作结果</td>
      </tr>
      </thead>
      <tbody>
      #for(operationlog : operationlogList)
      <tr>
        <td>#(for.count)</td>
        <td>#(tools.getDateTimeStr(operationlog.createTime))</td>
        <td>#(operationlog.boxCode)</td>
        #if(operationlog.partCode == 'universal')
        <td>万能码</td>
        #else
        <td>#(operationlog.partCode)</td>
        #end
        #if(operationlog.result == 0)
        <td class="am-text-success">成功</td>
        #else
        <td class="am-text-danger">失败</td>
        #end
      </tr>
      #else
      <tr>
        <td colspan="5" style="text-align: center">暂无记录</td>
      </tr>
      #end
      </tbody>
    </table>
  </div>
</div>

<script type="text/javascript">
  function del(id) {
    if(confirm("确认执行删除操作?")) {
      var url = "/admin/image/delete?id=" + id;
      window.location.href=url;
    }
  }
</script>
#end